{extend name='main'}

{block name="button"}
<a  data-open="{:url('equip/index')}" class='layui-btn layui-btn-sm layui-btn-normal'>返 回</a>
{/block}

{block name="content"}
<div class="layui-card" style="padding: 5px 20px">
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='text-center'>序号</th>
            <th class='text-center'>通道名称</th>
            <th class='text-center'>通道状态</th>
            <!--<th class='text-center'>视频通道能力</th>-->
            <th class='text-center'>设备类型</th>
            <th class='text-center'>通通道厂商</th>
            <th class='text-center'>固件版本</th>
            <th class='text-center'>设备型号</th>
            <th class='text-center'>行为</th>
            <th class='text-center'>最后登录时间</th>
            <th class='text-center'>离线时间</th>
            <th class='text-center'>时间</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {volist name="list" id="vo" key='key'}
        <tr data-dbclick>
            <td class='text-center'>{$vo.id|default=''}</td>
            <td class='text-center'>{$vo.channel_name|default=''}</td>
            <td class='text-center'>{$vo.channel_state_title|default=''}</td>
            <!--<td class='text-center'>{$vo.channel_ability}</td>-->
            <td class='text-center'>{$vo.device_type|default=''}</td>
            <td class='text-center'>{$vo.manufacture|default=''}</td>
            <td class='text-center'>{$vo.firmware|default=''}</td>
            <td class='text-center'>{$vo.model|default=''}</td>
            <td class='text-center'>{$vo.behavior|default=''}</td>
            <td class='text-center'>
                {if $vo['last_login_time'] neq 0}
                {:date('Y-m-d H:i:s',$vo['last_login_time'])}
                {/if}
            </td>
            <td class='text-center'>{$vo['online_time']|default=''}</td>
            <td class='text-center'>{$vo['time']|default=''}</td>
        </tr>
        {/volist}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}